package com.project2.service;

import com.project2.bean.bo.CartAddBo;
import com.project2.bean.bo.CartCheckedBo;
import com.project2.bean.bo.CartCheckoutBo;
import com.project2.bean.po.CartCheckoutVo;
import com.project2.bean.po.MarketUser;
import com.project2.bean.vo.CartIndexVo;
import org.apache.catalina.User;

import javax.servlet.http.HttpSession;

public interface WxCartService {
    CartIndexVo index(MarketUser user);

    int goodsCount();

    int add(CartAddBo cartAddBo, MarketUser marketUser,boolean isFastAdd);

    CartIndexVo checked(CartCheckedBo cartCheckedBo);

    CartIndexVo deleted(CartCheckedBo cartCheckedBo, MarketUser user);

    int update(CartAddBo cartAddBo);

    CartCheckoutVo checkout(CartCheckoutBo cartCheckoutBo, MarketUser user);
}
